package hw;

import javax.swing.*;
import java.awt.*;

/**
 * 扑克牌
 */
public class Card {
    /**
     * 点数
     */
    private String point;
    /**
     * 花色（黑桃、红心、梅花、方块，♠、♥、♣、♦）
     */
    private String type;
    private int pointValue;
    private int typeValue;
    private Image images;
    // 高内聚、低耦合

    public Card() {

    }

    public Card(String point, String type) {
        this.point = point;
        this.type = type;
    }

    public Card(String point, String type, int pointValue, int typeValue) {
        this.point = point;
        this.type = type;
        this.pointValue = pointValue;
        this.typeValue = typeValue;
    }

    public Card(String point, String type, int pointValue, int typeValue, Image images) {
        this.point = point;
        this.type = type;
        this.pointValue = pointValue;
        this.typeValue = typeValue;
        this.images = images;
    }

    @Override
    public String toString() {
        return type + point;
    }


    public String getPoint() {
        return point;
    }

    public void setPoint(String point) {
        this.point = point;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getPointValue() {
        return pointValue;
    }

    public void setPointValue(int pointValue) {
        this.pointValue = pointValue;
    }

    public int getTypeValue() {
        return typeValue;
    }

    public void setTypeValue(int typeValue) {
        this.typeValue = typeValue;
    }

    public Image getImages() {
        return images;
    }

    public void setImages(Image images) {
        this.images = images;
    }
}
